package com.spdb;

public class HelloWorld {

    public String say(String name) {
        String result = "Hello " + name;
        System.out.println(result);
        return result;
    }

    public int add(int num1, int num2) {
        System.out.println("num1 + num2 = " + (num1 + num2));
        return num1 + num2;
    }


    public int max(int num1, int num2) {
        System.out.println("max = " + (num1 > num2 ? num1 : num2));
        return num1 > num2 ? num1 : num2;
    }

    public int poor(int num1, int num2) {
        System.out.println("num1 - num2 = " + (num1 - num2));
        return num1 - num2;
    }

}
